import { Module } from '@nestjs/common';
import { RoleService } from './role/services/role/role.service';
import { AccountRoleService } from './account/services/account-role/account-role.service';
import { TypeOrmModule } from '@nestjs/typeorm';
import { AccountEntity } from './account/entities/account.entity';
import { AccountRoleEntity } from './account/entities/account.role.entity';
import { RoleEntity } from './role/entities/role.entity';
import { AccountService } from './account/services/account/account.service';
import { AccountResolver } from './account/resolvers/account/account.resolver';
import { AccountRoleResolver } from './account/resolvers/accout-role/accout-role.resolver';
import { RoleResolver } from './role/resolves/resolves.resolver';
import { LoginService } from './login/services/login/login.service';
import { LoginResolver } from './login/resolvers/login/login.resolver';

@Module({
  imports: [TypeOrmModule.forFeature([AccountEntity,RoleEntity, AccountRoleEntity])],
  providers: [AccountService, AccountResolver, RoleService,RoleResolver,  AccountRoleService, AccountRoleResolver, LoginService, LoginResolver],
})
export class SystemModule {}
